﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _003_类的定义与声明
{
    class Vehicle//默认有构造函数；
    {
        public float speed;
        public float maxSpeed;
        public float weight;
        public void Run()
        {
            Console.WriteLine("这个车正在以"+speed+"m/s的速度前行");
        }
        public void Stop()
        {
            speed = 0;
            Console.WriteLine("车辆已停止");

        }
    }
}
